@import '../../assets/styles/color.scss';

.pa-loading {
  .content {
    position: fixed;
    z-index: 9999;
    color: $normalcolor;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-content: center;
  }
  .loading-ui {
    width: .8rem;
    height: .8rem;
    border-radius: 50%;
    border-top: .04rem solid $maincolor;
    animation: loadingAni .4s linear infinite;
  }
  .loading-text {
    margin-top: .2rem;
    font-size: .24rem;
    text-align: center;
    animation: loadingText 1s ease-in-out infinite;
    animation-direction: alternate-reverse;
  }
  .pa-mask {
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(white, .6);
  }
}

@keyframes loadingAni {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes loadingText {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(1.2);
  }
}